package com.example.produces.mapper;

import com.example.produces.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
@Mapper
@Repository//数据访问层 (DAO 层 ) 的类标识为bean
public interface UserMapper {
    List<User> findAll();
    void Add(User user);
    User findOne(String name);
    void upDate(User user);
}
